package com.xiaoshuidi.cloud.module.system.api.receipt;

import com.xiaoshuidi.cloud.framework.common.pojo.CommonResult;
import com.xiaoshuidi.cloud.module.system.api.receipt.dto.ReceiptDataRespDTO;
import com.xiaoshuidi.cloud.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - 收据配置")
public interface ReceiptConfigApi {

    String PREFIX = ApiConstants.PREFIX + "/receipt";

    @GetMapping(PREFIX + "/get")
    @Operation(summary = "获取门店收据配置数据")
    CommonResult<ReceiptDataRespDTO> getReceiptConfig(@RequestParam("apartmentId") Long apartmentId);

}
